import { defineStore } from "pinia";
import * as evaulationApi from "@/api/evaulation";

export const evaulationStore = defineStore("frontStore", {
  state: () => ({
    questions: []
  }),
  actions: {
    async getLogicTest() {
      try {
        const res = await evaulationApi.getLogicTest();
        this.questions = res;
        return res;
      } catch (error) {
        throw error;
      }
    },
    async sumbitLogicTest() {
      try {
        const res = await evaulationApi.sumbitLogicTest();
      } catch (error) {
        throw error;
      }
    }
  }
});
